package Test;

public class TestPaperState {
	/** 试题号 */
	private int id;
	
	/** 所属科目 */
	private Course course;
	
	/** 当前状态 */
	private int state = TestPaper.UNSOLVED;
	
	/** 答题人ID */
	private int studentID = 0;
	
	/** 总分 */
	private int score = 0;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getStudentID() {
		return studentID;
	}

	public void setStudentID(int studentID) {
		this.studentID = studentID;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getScore() {
		return score;
	}
	
	public String getStateName(){
		return TestPaper.getStateName(state);
	}
}
